@echo OFF
echo Removing (Sanatize) temp directory if needed
if EXIST ..\temp_pbo rd /S /Q ..\temp_pbo
echo Creating temp directory
mkdir ..\temp_pbo
echo Preparing Files for PBO
xcopy /Q /E /Y .\*.* ..\temp_pbo\
echo Removing not needed files
del /Q ..\temp_pbo\create_pbo.cmd
del /Q ..\temp_pbo\cpbo.exe
echo Building PBO
cpbo -y -p  ..\temp_pbo\ ..\Coop_Dom_COAI_254A.isladuala.pbo >NUL:
echo Removing temp directory
rd /S /Q ..\temp_pbo
pushd ..\
echo File created: %CD%\Coop_Dom_COAI_254A.isladuala.pbo 
popd
pause
